home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / emac.arc / EMACS.HLP < prev    next >
Text File  |  1986-04-20  |  8KB  |  180 lines

  1.                  MicroEMACS 3.5 Help
  2.  
  3.      Explanation of Symbols:
  4.      +-----------------------------------------------------------+
  5.      |  M-  Press the [ESC] key prior to pressing any other key  |
  6.      |  ^A  Hold down the control key while pressing the A key   |
  7.      |  ->  Press the Right Arrow key                 |
  8.      |  <-  Press the Left Arrow key                 |
  9.      |  <-- Press the Backspace key                     |
  10.      +-----------------------------------------------------------+
  11.  
  12.                  (1) CURSOR MOVEMENT
  13.  
  14.  ^V  or [Pg Dn]     Next page        |  M-< or [HOME]   Begining of file
  15.  M-V or [Pg Up]     Previous page    |  M-> or [END]       End of file
  16.  ^F  or [->]        Forward character    |  M-F or ^[->]       Forward word
  17.  ^B  or [<-]        Backward character    |  M-B or ^[<-]       Backward word
  18.  ^N  or [Dn Arrow]  Next line        |  M-N or ^[Pg Dn] End of paragraph
  19.  ^P  or [Up Arrow]  Previous line    |  M-P or ^[Pg Up] Front of paragraph
  20.  ^A            Front of line    |  ^E           End of line
  21.  
  22.  ^X^N    Scroll down by Universal repeat count lines.
  23.  ^X^P    Scroll up by Universal repeat count lines.
  24.  M-G    Goto Line number specified in Universal repeat count
  25.  
  26.  ------------------------------------------------------------------------------
  27.                 (2) SEARCHING
  28.  
  29.  ^S    Search forward from cursor position.  Type in a string to be searched
  30.      for at the prompt and end it with ESC.  Either case will match unless
  31.     EXACT mode is set for the current buffer.
  32.  
  33.  ^R    As above, but Reverse search from cursor position.
  34.  
  35.  ------------------------------------------------------------------------------
  36.                 (3) REPLACING
  37.  
  38.  M-R    Replace all instances of first argument with second argument.  End each
  39.     argument with [ESC].  M-R may be preceded by a Universal Repeat count to
  40.     specify the number of replacements to occur (M-#-M-R).  Default=ALL
  41.  
  42.  M-^R    Replace with query.  Answer with:
  43.     ^G    cancel            |  .    exit to entry point
  44.     !    replace the rest    |  Y    replace & continue
  45.     ?    list options        |  N    no replacement & continue
  46.  
  47.  ------------------------------------------------------------------------------
  48.             (4) CAPITALIZING & TRANSPOSING
  49.  
  50.  M-U    UPPERCASE word            |  ^X^U UPPERCASE region
  51.  M-L    lowercase word            |  ^X^L lowercase region
  52.  M-C    Capitalize word            |  ^T    Transpose characters
  53.  
  54.  ------------------------------------------------------------------------------
  55.                  (5) MARKING REGIONS
  56.  
  57.  ^@ or M-' '    Set region MARK at current position
  58.  ^X^X        Exchange mark and cursor
  59.  
  60.  A REGION will then be continuously-defined as the area between the mark and
  61.  the current cursor position.
  62.  
  63.  ------------------------------------------------------------------------------
  64.               (6) DELETING & INSERTING
  65.  
  66.  <--          Delete previous character    |  M-<--   Delete previous word
  67.  ^D or [DEL]  Delete next character    |  M-D       Delete next word
  68.  ^O or [INS]  Open (insert) line     |  ^K      KILL (delete) to end of line
  69.  ^I          Insert a Tab        |  ^J       Insert CR/LF, then indent
  70.  ^M          Insert CR/LF        |  ^X^O       Delete blank lines
  71.  
  72.  ^Q    Quote next character, so that control codes may be entered into text
  73.  ^W    Delete region between mark (set using M-' ') and cursor
  74.  M-W    Copy region to kill buffer
  75.  
  76.  The KILL BUFFER is the text which has been most recently saved or deleted.
  77.  
  78.  ------------------------------------------------------------------------------
  79.                (7) COPYING AND MOVING
  80.  
  81.  ^W    Delete (Wipe) region        |  M-W       copy region to KILL buffer
  82.  ^Y    Yankback save buffer at cursor
  83.  
  84.  Generally, the procedure for copying or moving text is:
  85.     1)  Mark a REGION using M-' ' at beginning and cursor at end.
  86.     2)  Delete it (with ^W) or copy it (with M-W) into the KILL buffer.
  87.     3)  Move the cursor to the desired location and yank it back (with ^Y).
  88.  
  89.  ------------------------------------------------------------------------------
  90.                (8) MODES OF OPERATION
  91.  
  92.  ^XM    Add Mode            |  ^X^M    Delete Mode
  93.  
  94.     WRAP    Turns on word wrap (automatic carraige return).
  95.     VIEW    Allows viewing file without insertion and deletion.
  96.     EXACT    All searches done with exact case matching
  97.     CMODE    Automatic indenting for C program entry
  98.         (automatically set on any files ending with .C or .H)
  99.  
  100.  ------------------------------------------------------------------------------
  101.               (9) ON-SCREEN FORMATTING
  102.  
  103.  ^XF        Set fill column
  104.  Mn-<tab>    Set tab spacing to n charecters between tabs stops
  105.  M-Q        Format paragraph so that text lies between margins
  106.  ^X=        Position report -- displays line number, char count, size
  107.  
  108.  ------------------------------------------------------------------------------
  109.                (10) MULTIPLE WINDOWS
  110.  
  111.  Many WINDOWS may be active at once on the screen.  All windows may show
  112.  different parts of the same buffer, or each may display a different one.
  113.  
  114.  ^X2    Split current window in two    |  ^X1      Remove all but current window
  115.  ^XO    Move cursor to next window    |  ^XP      Move to previous window
  116.  ^X^^    Enlarge current window        |  ^X^Z      Shrink current window
  117.  M-^V    Scroll down, other window    |  M-^Z      Scroll up, other window
  118.  
  119.  M-^L or M-!    Redraw window with current line at center
  120.  ^L        Refresh windows
  121.  
  122.  ------------------------------------------------------------------------------
  123.                (11) MULTIPLE BUFFERS
  124.  A BUFFER is a named area containing a document being edited.  Many buffers
  125.  may be activated at once.  Each buffer has a name, which is typically the
  126.  lowercase disk filename of the document it contains.
  127.  
  128.  ^XB    Switch to another buffer.  <CR> = use just-previous buffer
  129.  ^X^B    List buffer directory in a window.
  130.  ^X^F    Find file; read into a new buffer created from filename.
  131.  M-~    Mark the current buffer unmodified (^Z will ignore the buffer).
  132.  M-K    Kill ALL text in current buffer.  (WARNING: ^Y won't yank it back)
  133.  ^XK    Delete a non-displayed buffer.
  134.  M-^N    Change the name of the current buffer.
  135.  ^XN    Change the file name of the current buffer.
  136.  
  137.  ------------------------------------------------------------------------------
  138.                (12) READING FROM DISK
  139.  
  140.  ^X^F    Find file; read into a new buffer created from filename.
  141.     (This is the usual way to begin editing a new file.)
  142.  ^X^R    Read file into current buffer, erasing its previous contents.
  143.     No new buffer will be created.
  144.  ^X^I    Insert file into current buffer at cursor's location.
  145.  ^X^V    Find a file to make current in VIEW mode.
  146.  
  147.  ------------------------------------------------------------------------------
  148.                  (13) SAVING TO DISK
  149.  
  150.  ^X^S    Save current buffer to disk, using the buffer's filename
  151.     as the name of the disk file.  Any disk file of that name
  152.     will be overwritten.
  153.  ^X^W    Write current buffer to disk.  Type in a new filename at the
  154.     prompt to write to; it will become the current buffer's filename.
  155.  ^Z    Write out all changed buffers and exit MicroEMACS
  156.  
  157.  ------------------------------------------------------------------------------
  158.              (14) ACCESSING THE OPERATING SYSTEM
  159.  
  160.  ^X!    Send one command to the operating system and return.
  161.  ^XC    Start a new command processer under MicroEMACS.
  162.  ^X^C    Exit MicroEMACS.
  163.  ^Z    Write out all changed buffers and then Exit MicroEMACS.
  164.  
  165.  ------------------------------------------------------------------------------
  166.              (15) SPECIAL KEYS AND KEY BINDINGS
  167.  
  168.  ^G        Cancel current command and return to top level of processing.
  169.  ^U or        Universal repeat.  May be followed by an integer (default = 4)
  170.  M-<digit>    and repeats the next command that many times.
  171.  M-X        Execute a named (and possibly unbound) command.
  172.  ^C        Bind a key to a named command.
  173.  M-^C        Unbind a key from a named command.
  174.  M-?        Display this file.
  175.  ^X^D        Display all commands and bindings in a buffer.
  176.  ^X?        Display a key's binding.
  177.  ^X(        Begin a keyboard macro.
  178.  ^X)        End a keyboard macro.
  179.  ^XE        Execute a keyboard macro.
  180.